var express = require('express');
var router = express.Router();
const createCode = require("../service/testcode.js");


/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express' });
});

//生成验证码路由
router.get("/createcode",createCode.gen);
//校验验证码路由
router.get("/testcode",createCode.verify);



module.exports = router;
